package com.study.services;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSONObject;
import com.study.model.mdao.ChartMapper;

@Service
@Transactional(rollbackOn = Exception.class)
public class ChartService {
	@Autowired
	ChartMapper mapper;
	
	
	/**
	订单状态
	 * @return 
	*/
	public List<JSONObject> findByOrderState() {
		return mapper.findByOrderState();
	}
	
	/**
	 * 近6个月的成交额
	 * @return 
	 */

	public List<JSONObject> findByOrderMoney() {
		return mapper.findByOrderMoney();
	}
	
	/**
	 * 客户转化
	 * @return 
	 */
	
	public JSONObject findByFormchange() {
		return mapper.findByFormchange();
	}
	
	/**
	 * 客户统计
	 * @return 
	 */
	
	public List<JSONObject> findByCustomerCount() {
		return mapper.findByCustomerCount();
	}

}
